package com.wechat.api.web.dao;

import java.util.HashMap;
import java.util.List;

import com.wechat.api.web.model.ChildrenStory;

public interface ChildrenStoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(ChildrenStory record);
    int insertSelective(ChildrenStory record);

    ChildrenStory selectByPrimaryKey(String id);
    List<ChildrenStory> selectByAlbumID(HashMap<String,Object> param);
  //  List<ChildrenStory> selectByUserID(String userID);

    List<ChildrenStory> selectByUserID(HashMap<String,Object> param);
    List<ChildrenStory> selectHistory(HashMap<String,Object> hm);
    int selectHistoryCount(HashMap<String,Object> hm);
    
    int updateByPrimaryKeySelective(ChildrenStory record);
    int updateByPrimaryKey(ChildrenStory record);    
    int updateCount(String id);
}